home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Concept 6
/
CD Concept 06.iso
/
mac
/
UTILITAIRE
/
Little Smalltalk v3.1.4
/
C Source
/
Sources
/
CLStSwitchboard.cp
< prev
next >
Wrap
Text File
|
1994-10-13
|
1KB
|
41 lines
//=============================================================================
// Little Smalltalk, version 3
// Written by Tim Budd, Oregon State University, July 1988
//
// Symantec Think Class Library interface code
// ⌐Julian Barkway, April 1994, all rights reserved.
//
// CLStSwitchboard.cp
// ------------------
// Overridden merthods from CSwitchboard
//=============================================================================
#include "CLStSwitchboard.h"
#include "CLStApp.h"
extern CLStApp *gSmalltalk;
extern CApplication *gApplication;
//={OVERRIDE}======================================================================
// GetAnEvent - get the next event and store it in gApplication for later retrieval
//=================================================================================
Boolean CLStSwitchboard::GetAnEvent (EventRecord *event)
{
Boolean retVal;
WindowPtr w;
retVal = inherited::GetAnEvent (event);
((CLStApp *)gApplication)->lastEvent = *event;
if (event->what == mouseDown) {
((CLStApp *)gApplication)->winPart = FindWindow (event->where, &w);
if (((CLStApp *)gApplication)->winPart == inMenuBar) {
gSmalltalk->smalltalkCmd = FALSE;
gSmalltalk->lastEvent.what = 0;
}
}
else
((CLStApp *)gApplication)->winPart = 0;
return retVal;
}